<?php

namespace App\Models\CacheModel\zlcr3;

use App\Models\Api\BaseCache;

class Zlcr3ConsultModifyPriceRecord extends BaseCache
{
    protected $table = 'wechat_backup_07_18_14_43_00.zlcr3_consult_modify_price_record';

    /**
     * 保存数据
     * @param array $data
     * @return int|string
     */
    public function SaveData(array $data)
    {
        try
        {
            // $data = [
            //     'astr_id' => 0,
            //     'level' => 0,
            //     'price' => 0,
            //     'create_time' => 0,
            // ];
            $id = $this->insertData($data);

            return (int)$id;
        }
        catch (\Exception $e)
        {
            \think\Log::write(__CLASS__ . ' => ' . __FUNCTION__ . '()异常：' . $e->getMessage() . '失败信息：' . $e->getFile() . ':' . $e->getLine(), 'error', true);
            return 0;
        }
    }
}
